var app = new Vue({
    el:"#max",
    data:{
        city:'',
        weatherlist:[]
    },
    methods:{
        searchweather:function(){
            var that = this;
            axios.get('http://wthrcdn.etouch.cn/weather_mini?city='+this.city)
            .then(function(response){
                that.weatherlist = response.data.data.forecast
                console.log('response.data.data.forecast');
            })
            .catch(function(err){})
        },
        changecity:function(city){
            this.city = city;
            this.searchweather();
        }
    }
    
})